%td{id:"user-opts-#{user.id.to_s}"}
  %span{class: "label #{user.workflow_state_class}"}= user.readable_state
  - if user.can_comfirm_individual?
    |
    %span
      = form_tag users_comfirm_individual_path(user.id), method: :put, remote: true, style:'display:inline;margin:0' do
        %button.btn.btn-info{type:'submit', name: nil}
          %i.glyphicon.glyphicon-ok
          个人实名认证
  - if user.can_comfirm_company?
    |
    %span
      = form_tag users_comfirm_company_path(user.id), method: :put, remote: true, style:'display:inline;margin:0' do
        %button.btn.btn-primary{type:'submit', name: nil}
          %i.glyphicon.glyphicon-ok
          企业实名认证
  - if user.can_reject?
    |
    %span
      = form_tag users_reject_path(user.id), method: :put, remote: true, style:'display:inline;margin:0' do
        %button.btn.btn-danger{type:'submit', name: nil}
          %i.glyphicon.glyphicon-remove
          驳回
